const mysql= require('mysql');
module.exports={
    config:{
        host:"127.0.0.1",
            port:3306,
            user:"root",
            password:'123456',
            database:'dom296',
            multipleStatements:true,
            timezone:'08:00'
    },
    connect(sql,params,cb){
        
        let conn=mysql.createConnection(this.config)
        conn.connect();
        conn.query(sql,params,cb);
        conn.end()
    }
}